package mall.dao;

import mall.model.bo.MallAskGoodsMsgBO;
import mall.model.vo.*;

import java.util.List;

/*
 *
 * @author Yonni
 * @version 1.8.0_201
 * @date 2020-06-01 10:54
 *
 * */
public interface MallIndexDao {
    List<MallShowGoodsVO> getAllGoods();

    List<MallShowGoodsVO> getGoodsByType(String typeId);

    List<MallIndexSearchVO> searchGoods(String keyword);

    MallGoodsInfoVO getGoodsInfo(String id);

    List<SpecsInfoVO> getspecsInfoVOs(String id);

    List<MallGetGoodsMsgVO> getGoodsMsg(String id);

    List<MallShowCommentVO> getGoodsComment(String goodsId);

    String calculateRate(String goodsId);

    String getUserIdFromUser(String token);

    String getGoodsNameFromGoods(String goodsId);

    void askGoodsMsg(MallAskGoodsMsgBO goodsMsgBO, String userId, String goodsName);
}
